const mongoose = require('mongoose');

mongoose
    .connect('mongodb+srv://qq455177696130:kobe248160@cluster0.ge3zboi.mongodb.net/xiang')
    .then(() => {
        console.log("数据库连接成功");
    })
    .catch((err) => {
        console.log('数据库连接失败,错误原因是：', err);
    })

module.exports = mongoose;